package com.net.test.controller;

import java.util.List;
import java.util.Locale;

import javax.servlet.http.HttpServletRequest;


import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;



@Controller
public class InputController {
	
	

	
	@RequestMapping(value = "/input.ncb", method = {RequestMethod.GET,RequestMethod.POST})
    public String input(Locale locale, Model model, HttpServletRequest request) throws Exception {		
				
		
		
		return "inPut";
	}
	@RequestMapping(value = "/output.ncb", method = {RequestMethod.GET,RequestMethod.POST})
    public String output(Locale locale, Model model, HttpServletRequest request) throws Exception {		
				
		String resBoolean = request.getParameter("resBoolean");
		
		model.addAttribute("resBoolean",resBoolean);
		
		return "outPut";
	}
		
}
